package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"typa:varchar(100)"`
	Password string `gorm:"typa:varchar(100)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"typa:varchar(100)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"typa:varchar(100)"`
}

// -------------------------------------------------商品订单表----------------------------------------
type Good struct {
	gorm.Model
	GoodNo   string `gorm:"typa:varchar(100)"`
	GoodName string `gorm:"typa:varchar(100)"`
}
type Order struct {
	gorm.Model
	OrderNo    string `gorm:"typa:varchar(100)"`
	OrderName  string `gorm:"typa:varchar(100)"`
	OrderPrice int    `gorm:"type:int"`
	Gid        int    `gorm:"type:int"`
}
type OrderList struct {
	gorm.Model
	OrderNo    string
	OrderName  string
	OrderPrice int
	GoodNo     string
	GoodName   string
}
